<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/



// Route::get('/', function () {
//     return view('welcome');
// });
// Route::get('/m', function () {
//     return view('m.index');
// });
$router->group(['namespace' => 'App\Http\Questionnaire\Controllers'], function () use ($router){

    //pc
    $router->get('/lhzs_{page}.html','NewsController@news_blade_list');//查询文章
    $router->get('/lhzs.html','NewsController@news_blade_list');//查询文章
    $router->get('/lhzs/{route}_{page?}.html','NewsController@news_blade_list_faId')->where(['route'=>'[a-zA-z]+','page'=>'[0-9]+']);//查询文章
    $router->get('/lhzs/{route}.html','NewsController@news_blade_list_faId');//查询文章
    $router->get('/lhzs/{route}/{newsId}.html','NewsController@news_blade_show');//查询文章内容
    $router->get('/lhzs/select_os_blade_news','NewsController@select_os_blade_news');//搜索文章
    $router->get('/','NewsController@index');//搜索文章

    $router->get('/dzlhxys2/czzn.html','NewsController@czzn');//操作指南
    $router->get('/dzlhxys2/xysdzbz.html','NewsController@xysdzbz');//离婚协议书定制帮助
    $router->get('/dzlhxys2/xysdzbz_{page?}.html','NewsController@xysdzbz');//离婚协议书定制帮助
    $router->get('/dzlhxys2/xysdzbz/{newsId}.html','NewsController@xysdzbz_show');//离婚协议书定制帮助
    $router->get('/userAgreement.html','NewsController@userAgreement');//离婚协议书定制帮助
    // $router->get('/dzlhxys2/xysdzbz/{route}_{page?}.html','NewsController@xysdzbz_list');//离婚协议书定制帮助
    // $router->get('/dzlhxys2/xysdzbz/{route}/{newsId}.html','NewsController@news_blade_show');//离婚协议书定制帮助

    //m
    $router->get('/mhome/lhzs.html','NewsController@m_news_blade_list');//搜索文章
    $router->get('/mhome/lhzs_{page}.html','NewsController@m_news_blade_list');//搜索文章
    $router->get('/mhome/lhzs/remen.html','NewsController@m_news_blade_list_remen');//搜索文章
    $router->get('/mhome/lhzs/{route}_{page}.html','NewsController@m_news_blade_list_faId');//搜索文章
    $router->get('/mhome/lhzs/{route}.html','NewsController@m_news_blade_list_faId');//搜索文章
    $router->get('/mhome/lhzs/{route}/{newsId}.html','NewsController@m_news_blade_show');//搜索文章
    $router->get('/mhome/msearch','NewsController@m_select_os_blade_news');//搜索文章
    $router->get('/page/cp/','PageController@cp');//获取文本内容


});

Route::get('/lhxys.html', function () {
    return view('pc.lhxys');
});

Route::get('/mhome/xyfw.html', function () {
    return view('m.xyfw');
});

// Route::get('/mhome/msearch', function () {
//     return view('m.msearch');
// });

Route::get('/userAgreement.html', function () {
    return view('pc.userAgreement');
});

Route::get('/mhome', function () {
    return view('m.index');
});




